
	<div class="tab-pane " id="comm">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">分销设置{if $system['ispresale']==1}
				<span style="color: red">【预热分销红包请在补款图文中设置】</span>
				{/if}</div>
			<div class="panel-body" style="">
				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">分销红包总开关</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscomm" value="0" {if $config['iscomm']==0} checked="checked"{/if} type="radio"> 暂停
						</label>
						<label class="radio-inline">
							<input name="iscomm" value="1" {if $config['iscomm']==1 || !isset($config['iscomm'])} checked="checked"{/if} type="radio"> 开启
						</label>
						<span class="help-block" style="color: red;">注意：全部粉丝都有推荐资格，包含未参团的，成功推荐的，需要后台管理员审核进行发放赏金</span>
						<span class="help-block" style="color: red;">如果设置1-3，表示随机金额在1.00元到3.00元之间的带两位小数金额，例如1.01元</span>
					</div>
                </div>
				{if ($system['send_mode']==1)}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">分帐是否自动结算</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="auto_settlement" value="0" {if $config['auto_settlement']==0} checked="checked"{/if} type="radio"> 自动结算
						</label>
						<label class="radio-inline">
							<input name="auto_settlement" value="1" {if $config['auto_settlement']==1} checked="checked"{/if} type="radio"> 手动结算
						</label>
						<span class="help-block">分帐手动结算，若订单有可用余额，可以继续给其他用户分帐；开裂变红包，会自动关闭自动结算；注意达到分帐上限会自动结算；</span>
					</div>
				</div>
				{/if}
				{if $config['shopstype5'] == 0 || $config['shopsort']== 0}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">是否显示红包排行</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshow" value="0" {if $config['iscommshow']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="iscommshow" value="1" {if $config['iscommshow']==1} checked="checked"{/if} type="radio"> 顶部显示
						</label>
						<label class="radio-inline">
							<input name="iscommshow" value="2" {if $config['iscommshow']==2} checked="checked"{/if} type="radio"> 中间显示
						</label>
						<label class="radio-inline">
							<input name="iscommshow" value="3" {if $config['iscommshow']==3} checked="checked"{/if} type="radio"> 底部显示
						</label>
						<span class="help-block">顶部:头像的下方; 中间:在顶部图片组与活动内容中间; 底部:活动内容的下方;</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">是否显示24小时红包排行</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshow24" value="0" {if $config['iscommshow24']==0} checked="checked"{/if} type="radio"> 暂停
						</label>
						<label class="radio-inline">
							<input name="iscommshow24" value="1" {if $config['iscommshow24']==1 || !isset($config['iscommshow24'])} checked="checked"{/if} type="radio"> 开启
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">红包排行榜</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshow_more" value="0" {if $config['iscommshow_more']==0} checked="checked"{/if} type="radio"> 可加载100条
						</label>
						<label class="radio-inline">
							<input name="iscommshow_more" value="1" {if $config['iscommshow_more']==1} checked="checked"{/if} type="radio"> 不可加载更多
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">排行榜中包含内部员工</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshowworker" value="0" {if $config['iscommshowworker']==0} checked="checked"{/if} type="radio"> 包含内部员工{php echo $system['selling_agent']==1?'及代理':'';}
						</label>
						{if $system['selling_agent']==1}
						<label class="radio-inline">
							<input name="iscommshowworker" value="2" {if $config['iscommshowworker']==2} checked="checked"{/if} type="radio"> 包含代理无员工
						</label>
						{/if}
						<label class="radio-inline">
							<input name="iscommshowworker" value="1" {if $config['iscommshowworker']==1} checked="checked"{/if} type="radio"> 不包含内部员工{php echo $system['selling_agent']==1?'及代理':'';}
						</label>
						<span class="help-block">也可以在分销管理-红包排行榜-修改某一个粉丝的昵称、红包数、红包金额</span>
					</div>
				</div>
				{else}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">重要提示：</label>
					<label class="col-sm-8 col-xs-12 " style="color:red">开启了商家排名，红包排行榜自动关闭；表单设置-》商家排名</label>
				</div>
				{/if}

				{if $system['fenxiao06'] == '1'}

				{if !($system['jiage'] >0 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2')}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">员工提成模式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input class="normal_mode"  name="comm6_mode" value="0" {if $config['comm6_mode']==0} checked="checked"{/if} type="radio"> 正常模式
						</label>
						<label class="radio-inline">
							<input class="set_promotion" name="comm6_mode" value="2" {if $config['comm6_mode']==2} checked="checked"{/if} type="radio"> 按成交单数提成设置
						</label>
						<label class="radio-inline">
							<input class="other_mode" name="comm6_mode" value="1" {if $config['comm6_mode']==1} checked="checked"{/if} type="radio"> 不同团队提成不同，在【员工业绩】》【团队提成设置】中设置，
						</label>
					</div>
				</div>
				{/if}
				<div id ='comm6_mode2' {if $config['comm6_mode']!=2} style="display: none;"{/if}>
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">按成交单数提成</label>
						<div class="col-sm-8 col-xs-8">
							<div class="tpl">
								{if !empty($config['comm6_mode2'])}
								{loop $config['comm6_mode2'] $row}
								<div class="input-group" style="margin-top: 10px;">
									<span class="input-group-addon">达到</span>
									<input type="text" name="comm6_limit[]" class="form-control" placeholder="" value="{$row['limit']}">
									<span class="input-group-addon">单</span>
									<span class="input-group-addon">提成</span>
									<input class="form-control"  name="comm6_price1[]" value="{$row['price1']}" type="text">
									<span class="input-group-addon"> - </span>
									<input class="form-control"  name="comm6_price2[]" value="{$row['price2']}" type="text">
									<span class="input-group-addon">元</span>
									<span class="input-group-addon"><a href="javascript:;" class="comm6_del"><i  class="fa fa-times"></i></a></span>
								</div>
								{/loop}
								{else}
								<div class="input-group" style="margin-top: 10px;">
									<span class="input-group-addon">达到</span>
									<input type="text" name="comm6_limit[]" class="form-control" placeholder="" value="0">
									<span class="input-group-addon">单</span>
									<span class="input-group-addon">提成</span>
									<input class="form-control"  name="comm6_price1[]" value="0.00" type="text">
									<span class="input-group-addon"> - </span>
									<input class="form-control"  name="comm6_price2[]" value="0.00" type="text">
									<span class="input-group-addon">元</span>
									<span class="input-group-addon"><a href="javascript:;" class="comm6_del"><i  class="fa fa-times"></i></a></span>
								</div>
								{/if}
							</div>
							<a href="javascript:;" class="comm6_add" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
						</div>
					</div>
				</div>
					<div class="form-group employee_promotion" {if $config['comm6_mode']!=0} style="display: none;"{/if}>
						<label class="col-sm-2 col-xs-12 control-label">{if $system['selling_agent'] == '1'}员工无代理的提成{else}员工提成{/if}</label>
						<div class="col-sm-6 col-xs-6">
							<div class="input-group">
								<input class="form-control"  name="comm61" value="{$config['comm61']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm62" value="{$config['comm62']}" type="text">
							</div>
							<span class="help-block" >开启后,员工的卖卡提成直接发放到微信钱包里;若开启三级分销,员工的分销提成与提成都会享有</span>
							{if ($system['jiage'] >0 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2')}
							<span class="help-block" >开启【底部按扭多价格支付】，无法使用员工提成【按成交单数提成设置】和【不同团队提成不同】</span>
							{/if}
						</div>
					</div>
					{if intval($config['comm6_mode'])<1}
					{if $system['jiage'] >0 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">员工提成：第二价格</label>
						<div class="col-sm-6 col-xs-6">
							<div class="input-group">
								<input class="form-control"  name="comm61_jiage2" value="{$config['comm61_jiage2']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm62_jiage2" value="{$config['comm62_jiage2']}" type="text">
							</div>
						</div>
					</div>
					{/if}
					{if $system['jiage'] >1 || $system['bottom_jiage'] == '2'}
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">员工提成：第三价格</label>
						<div class="col-sm-6 col-xs-6">
							<div class="input-group">
								<input class="form-control"  name="comm61_jiage3" value="{$config['comm61_jiage3']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm62_jiage3" value="{$config['comm62_jiage3']}" type="text">
							</div>
						</div>
					</div>
					{/if}
					{/if}
					{if $system['selling_agent'] == '1'}
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">员工有代理的提成</label>
						<div class="col-sm-6 col-xs-6">
							<div class="input-group">
								<input class="form-control"  name="comm61_agent" value="{$config['comm61_agent']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm62_agent" value="{$config['comm62_agent']}" type="text">
							</div>
							<span class="help-block" >开启代理模式时，员工有代理与无代理需分别设置，不设置视为无提成</span>
						</div>
					</div>
					{/if}
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">员工提成规则</label>
						<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="is_comm6" value="0" {if $config['is_comm6']==0} checked="checked"{/if} type="radio"> 正常提成
							</label>
							<label class="radio-inline">
								<input name="is_comm6" value="1" {if $config['is_comm6']==1} checked="checked"{/if} type="radio"> 直卖无提成+非直卖有提成
							</label>
							<label class="radio-inline">
								<input name="is_comm6" value="2" {if $config['is_comm6']==2} checked="checked"{/if} type="radio"> 直卖有提成+非直卖无提成
							</label>
						</div>
					</div>
				{/if}
				{if $system['selling_agent'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">代理提成</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm_agent1" value="{$config['comm_agent1']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm_agent2" value="{$config['comm_agent2']}" type="text">
						</div>
						<span class="help-block" >开启后,代理的卖卡提成直接发放到微信钱包里;若开启三级分销,代理的分销提成与提成都会享有</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">代理提成规则</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="is_comm6_agent" value="0" {if $config['is_comm6_agent']==0} checked="checked"{/if} type="radio"> 非直卖有提成
						</label>
						<label class="radio-inline">
							<input name="is_comm6_agent" value="1" {if $config['is_comm6_agent']==1} checked="checked"{/if} type="radio"> 非直卖无提成
						</label>
					</div>
				</div>
				{/if}
				{if ($system['fenxiao08']==1)}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">额外补发限制</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="refresh_other_num" value="0" {if $config['refresh_other_num']==0} checked="checked"{/if} type="radio"> 补发1次
						</label>
						<label class="radio-inline">
							<input name="refresh_other_num" value="1" {if $config['refresh_other_num']==1} checked="checked"{/if} type="radio"> 不限次数
						</label>
					</div>
				</div>
				{/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">未授权用户</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm_avatar_user" value="0" {if $config['comm_avatar_user']==0} checked="checked"{/if} type="radio"> 不可发放红包
						</label>
						<label class="radio-inline">
							<input name="comm_avatar_user" value="1" {if $config['comm_avatar_user']==1} checked="checked"{/if} type="radio"> 只有裂变红包正常发放
						</label>
						<label class="radio-inline">
							<input name="comm_avatar_user" value="2" {if $config['comm_avatar_user']==2} checked="checked"{/if} type="radio"> 所有分销正常发放
						</label>
					</div>
				</div>
			</div>
		</div>

		{if $system['fenxiao09'] == 1}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">团满后团长可以获得的红包金额</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">团长红包{if $system['jiage'] >0 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}：第一价格{/if}</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm91" value="{$config['comm91']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm92" value="{$config['comm92']}" type="text">
						</div>
					</div>
				</div>
				{if $system['jiage'] >0 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">团长红包：第二价格</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm91_jiage2" value="{$config['comm91_jiage2']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm92_jiage2" value="{$config['comm92_jiage2']}" type="text">
						</div>
					</div>
				</div>
				{/if}
				{if $system['jiage'] >1 || $system['bottom_jiage'] == '2'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">团长红包：第三价格</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm91_jiage3" value="{$config['comm91_jiage3']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm92_jiage3" value="{$config['comm92_jiage3']}" type="text">
						</div>
					</div>
				</div>
				{/if}
			</div>
		</div>
		{/if}
		{if $system['fenxiao01'] >0 }
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">{if $system['jiage'] >0 }第一价格：{/if}{if $system['fenxiao01'] ==1 }一级分销{elseif $system['fenxiao01'] ==2 }二级分销{else}三级分销{/if}</div>
			<div class="panel-body" style="">
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">员工{php echo $system['selling_agent'] == '1'?'与代理':'';}是否有分销红包</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="commworker" value="0" {if $config['commworker']==0} checked="checked"{/if} type="radio"> 有
						</label>
						<label class="radio-inline">
							<input name="commworker" value="1" {if $config['commworker']==1} checked="checked"{/if} type="radio"> 没有
						</label>
					</div>
                </div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">客户要求</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="intheme" value="0" {if $config['intheme']==0} checked="checked"{/if} type="radio"> 所有
						</label>
						<label class="radio-inline">
							<input name="intheme" value="1" {if $config['intheme']==1} checked="checked"{/if} type="radio"> 已支付的客户(员工不支付也可收到)
						</label>
                        <label class="radio-inline">
                            <input name="intheme" value="2" {if $config['intheme']==2} checked="checked"{/if} type="radio"> 员工或代理（所有客户收不到）
                        </label>
						<span class="help-block" style="color: red;">注意：选择已支付的客户,此客户支付后,别人通过他的链接报名,才能收到红包；员工或代理主要应用于员工直卖的提成与非提成不一样时</span>
					</div>
                </div>
                {if $system['fenxiao01'] >1 }
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">绑定上下级</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isfreeze" value="0" {if $config['isfreeze']==0} checked="checked"{/if} type="radio"> 不绑定
						</label>
						<label class="radio-inline">
							<input name="isfreeze" value="1" {if $config['isfreeze']==1} checked="checked"{/if} type="radio"> 绑定
						</label>
						<span class="help-block" style="color: red;">开启二级,三级分销时,建议开启绑定上下级关系,当客户付款后自动绑定上级</span>
						<span class="help-block" style="color: red;">未绑定或一级分销时,上级为上一次打开谁的链接,上级为谁</span>
					</div>
                </div>
                {/if}
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">一级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11" value="{$config['comm11']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12" value="{$config['comm12']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm13" value="{$config['comm13']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_2" value="{$config['comm11_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_2" value="{$config['comm12_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm13_2" value="{$config['comm13_2']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_3" value="{$config['comm11_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_3" value="{$config['comm12_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly value="=100-上方概率" type="text">
							</div>
							<span class="help-block" >注意：A推荐B，B付款，奖励A，属于一级分销，最小金额必须大于0.3元，概率为整数不可带%号</span>
	                    </div>
               	</div>
				{if $system['fenxiao01'] >1 }
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">二级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21" value="{$config['comm21']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22" value="{$config['comm22']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm23" value="{$config['comm23']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21_2" value="{$config['comm21_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22_2" value="{$config['comm22_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly  value="=100-上方概率" type="text">
							</div>
							<span class="help-block" >注意：A推荐B，B推荐C，C推荐D，D成交后奖励B的钱，最小金额必须大于0.3元</span>
	                    </div>
               	</div>
               	{/if}
               	{if $system['fenxiao01'] ==3 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">三级分销红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm31" value="{$config['comm31']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm32" value="{$config['comm32']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm33" value="{$config['comm33']}" type="text">
						</div>
					</div>
				</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm31_2" value="{$config['comm31_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm32_2" value="{$config['comm32_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly  value="=100-上方概率" type="text">
							</div>
						<span class="help-block" >注意：A推荐B，B推荐C，C推荐D，D成交后奖励A的钱,最小金额必须大于0.3元</span>
	                    </div>
               	</div>
				{/if}
			</div>
		</div>

		{if $system['jiage'] >0 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">第二个价格：{if $system['fenxiao01'] ==1 }一级分销{elseif $system['fenxiao01'] ==2 }二级分销{else}三级分销{/if}</div>
			<div class="panel-body" style="">

				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">一级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_jiage2" value="{$config['comm11_jiage2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_jiage2" value="{$config['comm12_jiage2']}" type="text">
							</div>
	                    </div>
               	</div>
				<!-- <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">一级参团红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm1_jiage2" value="{$config['comm1_jiage2']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm2_jiage2" value="{$config['comm2_jiage2']}" type="text">
						</div>
					</div>
				</div> -->
				{if $system['fenxiao01'] >1 }
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">二级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21_jiage2" value="{$config['comm21_jiage2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22_jiage2" value="{$config['comm22_jiage2']}" type="text">
							</div>
	                    </div>
               	</div>
               	{/if}
               	{if $system['fenxiao01'] ==3 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">三级分销红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm31_jiage2" value="{$config['comm31_jiage2']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm32_jiage2" value="{$config['comm32_jiage2']}" type="text">
						</div>
					</div>
				</div>
				{/if}
			</div>
		</div>
		
		{/if}

		{if $system['jiage'] >1 || $system['bottom_jiage'] == '2'}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">第三个价格：{if $system['fenxiao01'] ==1 }一级分销{elseif $system['fenxiao01'] ==2 }二级分销{else}三级分销{/if}</div>
			<div class="panel-body" style="">
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">一级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_jiage3" value="{$config['comm11_jiage3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_jiage3" value="{$config['comm12_jiage3']}" type="text">
							</div>
	                    </div>
               	</div>
				<!-- <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">一级参团红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm1_jiage3" value="{$config['comm1_jiage3']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm2_jiage3" value="{$config['comm2_jiage3']}" type="text">
						</div>
					</div>
				</div> -->
				{if $system['fenxiao01'] >1 }
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">二级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21_jiage3" value="{$config['comm21_jiage3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22_jiage3" value="{$config['comm22_jiage3']}" type="text">
							</div>
	                    </div>
               	</div>
               	{/if}
               	{if $system['fenxiao01'] ==3 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">三级分销红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm31_jiage3" value="{$config['comm31_jiage3']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm32_jiage3" value="{$config['comm32_jiage3']}" type="text">
						</div>
					</div>
				</div>
				{/if}
			</div>
		</div>
		
		{/if}
		{/if}

		{if $system['fenxiao04'] ==1 || $system['fenxiao05'] ==1 || $system['fenxiao07'] ==1}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">裂变红包</div>
			<div class="panel-body" style="">
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">裂变红包发放模式</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4autored" value="0" {if $config['comm4autored']==0} checked="checked"{/if} type="radio"> 商家手工发放
						</label>
						<label class="radio-inline">
							<input name="comm4autored" value="3" {if $config['comm4autored']==3} checked="checked"{/if} type="radio"> 
							客户手工提现
						</label>
						<label class="radio-inline">
							<input name="comm4autored" value="1" {if $config['comm4autored']==1 || !isset($config['comm4autored'])} checked="checked"{/if} type="radio"> 系统自动发放
						</label>
						<label class="radio-inline">
							<input name="comm4autored" value="2" {if $config['comm4autored']==2} checked="checked"{/if} type="radio"> 在下方时间之前自动发放
						</label>
						{php echo view_form_field_date('comm4autoredtime', date('Y-m-d H:i:s',$config['comm4autoredtime']),true);}
						<span class="help-block" style="color: red;">注意：由于裂变红包，不需要支付就可以领，经常会碰到一人多号同时领，甚至职业团队来刷红包，我们增加了多重防刷机制，但我们还是建议使用手工后台发放，确保资金安全。且出现所有多发或盗刷红包均由店家自行承担，与无关。</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">手工发放提示</label>
					<div class="col-sm-8 col-xs-12">
						<input class="form-control" name="comm4tips" value="{if empty($config['comm4tips'])}红包#fee元已提现，将在24小时内到账，请在您的微信零钱中查收{else}{$config['comm4tips']}{/if}" type="text">

						<span class="help-block" >如：红包#fee元已提现，将在24小时内到账，请在您的微信零钱中查收</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">客户要求</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4ispay" value="0" {if $config['comm4ispay']==0} checked="checked"{/if} type="radio"> 所有用户都可以收到
						</label>
						<label class="radio-inline">
							<input name="comm4ispay" value="1" {if $config['comm4ispay']==1} checked="checked"{/if} type="radio"> 只有已支付的客户才有裂变红包
						</label>
					</div>
				</div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">员工{php echo $system['selling_agent'] == '1'?'与代理':'';}是否有裂变红包</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4worker" value="0" {if $config['comm4worker']==0} checked="checked"{/if} type="radio"> 有
						</label>
						<label class="radio-inline">
							<input name="comm4worker" value="1" {if $config['comm4worker']==1} checked="checked"{/if} type="radio"> 没有
						</label>
					</div>
                </div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">是否开启大数据</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4dashuju" value="0" {if $config['comm4dashuju']==0} checked="checked"{/if} type="radio"> 开启【强烈推荐】
						</label>
						<label class="radio-inline">
							<input name="comm4dashuju" value="1" {if $config['comm4dashuju']==1} checked="checked"{/if} type="radio"> 关闭
						</label>
						<span class="help-block" >防止盗刷红包非常有力的技术，强烈建议开启(前50名领取的不受此功能限制)</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包发放时间</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							{php $comm4_time = [5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];}
							{php $config['comm4_time1'] = empty($config['comm4_time1'])?7:$config['comm4_time1'];}
							{php $config['comm4_time2'] = empty($config['comm4_time2'])?23:$config['comm4_time2'];}
							<select class="form-control" name="comm4_time1">
								{loop $comm4_time $value}
								<option value="{$value}" {if $config['comm4_time1'] == $value }selected="selected"{/if}>{$value}:00:00</option>
								{/loop}
							</select>
							<span class="input-group-addon"> - </span>
							<select class="form-control" name="comm4_time2">
								{loop $comm4_time $value}
								<option value="{$value}" {if $config['comm4_time2'] == $value }selected="selected"{/if}>{$value}:59:59</option>
								{/loop}
							</select>
						</div>
					</div>
				</div>
				{if $system['fenxiao04'] == '1' || $system['fenxiao07'] == '1'}

				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">裂变红包金额</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm41" value="{$config['comm41']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm42" value="{$config['comm42']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm43" value="{$config['comm43']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control" name="comm41_2" value="{$config['comm41_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm42_2" value="{$config['comm42_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm43_2" value="{$config['comm43_2']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm41_3" value="{$config['comm41_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm42_3" value="{$config['comm42_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly value="=100-上方概率" type="text">
							</div>

						<span class="help-block" >最小金额值为0表未开启,转发红包:客户符合转发规则,进行转发即可收到红包</span>
						<!-- <span class="help-block" >可设置0.01以上的小红包,系统会进行累计,当累计收到的红包大于0.3元时系统自动发放</span> -->
					</div>
               	</div>
				{/if}
				{if $system['fenxiao07'] == '1'}
				<!-- <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">摇一摇红包</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">第一天</span>
							<input class="form-control"  name="comm711" value="{$config['comm711']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm712" value="{$config['comm712']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm71type">
				         		<option value="0" {if $config['comm71type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm71type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm71type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm71type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm71type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<div class="input-group">
							<span class="input-group-addon">第二天</span>
							<input class="form-control"  name="comm721" value="{$config['comm721']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm722" value="{$config['comm722']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm72type">
				         		<option value="0" {if $config['comm72type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm72type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm72type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm72type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm72type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<div class="input-group">
							<span class="input-group-addon">第三天</span>
							<input class="form-control"  name="comm731" value="{$config['comm731']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm732" value="{$config['comm732']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm73type">
				         		<option value="0" {if $config['comm73type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm73type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm73type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm73type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm73type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<div class="input-group">
							<span class="input-group-addon">第四天</span>
							<input class="form-control"  name="comm741" value="{$config['comm741']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm742" value="{$config['comm742']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm74type">
				         		<option value="0" {if $config['comm74type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm74type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm74type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm74type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm74type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div> 
						<div class="input-group">
							<span class="input-group-addon">第五天</span>
							<input class="form-control"  name="comm751" value="{$config['comm751']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm752" value="{$config['comm752']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm75type">
				         		<option value="0" {if $config['comm75type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm75type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm75type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm75type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm75type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<span class="help-block" >红包金额需设置0.3以上的红包</span>
						<span class="help-block" >先摇后转发:客户摇一摇会收到红包/礼品,转发朋友圈即可到账</span>
						<span class="help-block" >转发:无需摇一摇,客户转发朋友圈即可获得红包/礼品并到账</span>
						<span class="help-block" >天数:为用户参与的天数,比如活动进行了10天一个新客户参与,属于客户的第一天</span>
					</div>
				</div> -->
				{/if}
				{if $system['fenxiao05'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">新客户判断标准</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm5UserLimit" value="0" {if $config['comm5UserLimit']==0} checked="checked"{/if} type="radio"> 授权头像
						</label>
						<label class="radio-inline">
							<input name="comm5UserLimit" value="1" {if $config['comm5UserLimit']==1} checked="checked"{/if} type="radio"> 未授权+授权头像
						</label>
					</div>
				</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">新客户阅读红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm51" value="{$config['comm51']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm52" value="{$config['comm52']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm53" value="{$config['comm53']}" type="text">
							</div>
	                    </div>
               	</div>

				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control" name="comm51_2" value="{$config['comm51_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm52_2" value="{$config['comm52_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm53_2" value="{$config['comm53_2']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm51_3" value="{$config['comm51_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm52_3" value="{$config['comm52_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly value="=100-上方概率" type="text">
							</div>
						<span class="help-block" >阅读红包:客户转发后,新客户查看阅读,会给到转发者一个随机金额红包</span>
					</div>
               	</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">新客户阅读红包</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon"><span style="color: red;">*</span>每天多少个</span>
							<input class="form-control" placeholder="默认为100" name="comm5daynum" value="{if empty($config['comm5daynum'])}100{else}{$config['comm5daynum']}{/if}" type="text">
							<span class="input-group-addon">总共多少个</span>
							<input class="form-control" placeholder="默认为300" name="comm5sum" value="{if empty($config['comm5sum'])}300{else}{$config['comm5sum']}{/if}" type="text">
						</div>
						<span class="help-block" >(必填)每天多少个：一个客户,每天可以领到多少个阅读红包</span>
						<span class="help-block" >总计多少个：一个客户,总计可以领到多少个阅读红包</span>
						<span class="help-block" >红包规则2-5对于阅读红包生效。</span>
					</div>
				</div>
				{/if}
				{if $system['fenxiao04'] == '1' || $system['fenxiao07'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则1</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon"><span style="color: red;">*</span>每天多少个</span>
							<input class="form-control" placeholder="例如:10" name="comm4daynum" value="{if empty($config['comm4daynum'])}1{else}{$config['comm4daynum']}{/if}" type="text">
							<span class="input-group-addon">总共多少个</span>
							<input class="form-control" placeholder="例如:100" name="comm4sum" value="{if empty($config['comm4sum'])}1{else}{$config['comm4sum']}{/if}" type="text">
						</div>
						<span class="help-block" >注意：为了防止恶意刷红包，强裂建议进行设置(单个客户只可以领1个)</span>
						<span class="help-block" style="color: red;">(必填)每天多少个：一个客户,每天可以领到多少个裂变红包</span>
						<span class="help-block" >总计多少个：一个客户,总计可以领到多少个裂变红包</span>
					</div>
				</div>
				{/if}

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则2</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">最近3小时</span>
			                  <select class="form-control" name="comm4type">
			                          <option value="0" {if $config['comm4type']==0}selected="selected"{/if}>无限制</option>
			                          <option value="1" {if $config['comm4type']==1}selected="selected"{/if} >成交0单，停发【推荐】</option>
			                          <option value="2" {if $config['comm4type']==2}selected="selected"{/if} >成交少于2单，停发</option>
			                          <option value="3" {if $config['comm4type']==3}selected="selected"{/if} >成交少于3单，停发</option>
			                          <option value="4" {if $config['comm4type']==4}selected="selected"{/if} >成交少于5单，停发</option>
			                          <option value="5" {if $config['comm4type']==5}selected="selected"{/if} >成交少于10单，停发</option>
			                          <option value="6" {if $config['comm4type']==6}selected="selected"{/if} >成交少于20单，停发</option>
			                  </select>
						<span class="input-group-addon">最近3小时</span>
			                  <select class="form-control" name="comm4typehb">
			                          <option value="0" {if $config['comm4typehb']==0}selected="selected"{/if}>无限制</option>
			                          <option value="1" {if $config['comm4typehb']==1}selected="selected"{/if} >裂变红包大于收入，停发【推荐】</option>
			                          <option value="2" {if $config['comm4typehb']==2}selected="selected"{/if} >红包大于收入20元，停发</option>
			                          <option value="3" {if $config['comm4typehb']==3}selected="selected"{/if} >红包大于收入50元，停发</option>
			                          <option value="4" {if $config['comm4typehb']==4}selected="selected"{/if} >红包大于收入100元，停发</option>
			                          <option value="5" {if $config['comm4typehb']==5}selected="selected"{/if} >红包大于收入200元，停发</option>
			                  </select>
						<span class="input-group-addon">员工异常自动锁定</span>
			                  <select class="form-control" name="comm4typeyg">
			                          <option value="0" {if $config['comm4typeyg']==0}selected="selected"{/if}>无限制</option>
			                          <option value="1" {if $config['comm4typeyg']==1}selected="selected"{/if} >转发量超浏览量的30%</option>
			                          <option value="2" {if $config['comm4typeyg']==2}selected="selected"{/if} >转发量超浏览量的40%</option>
			                          <option value="3" {if $config['comm4typeyg']==3 || !isset($config['comm4typeyg'])}selected="selected"{/if} >转发量超浏览量的50%【推荐】</option>
			                          <option value="4" {if $config['comm4typeyg']==4}selected="selected"{/if} >转发量超浏览量的60%</option>
			                          <option value="5" {if $config['comm4typeyg']==5}selected="selected"{/if} >转发量超浏览量的70%</option>
			                          <option value="6" {if $config['comm4typeyg']==6}selected="selected"{/if} >转发量超成交量的5倍</option>
			                          <option value="7" {if $config['comm4typeyg']==7}selected="selected"{/if} >转发量超成交量的10倍</option>
			                          <option value="8" {if $config['comm4typeyg']==8}selected="selected"{/if} >转发量超成交量的15倍</option>
			                          <option value="9" {if $config['comm4typeyg']==9}selected="selected"{/if} >转发量超成交量的20倍</option>
			                          <option value="10" {if $config['comm4typeyg']==10}selected="selected"{/if} >转发量超成交量的25倍</option>
			                          <option value="11" {if $config['comm4typeyg']==11}selected="selected"{/if} >转发量超成交量的30倍</option>
			                          <option value="12" {if $config['comm4typeyg']==12}selected="selected"{/if} >转发量超成交量的40倍</option>
			                          <option value="13" {if $config['comm4typeyg']==13}selected="selected"{/if} >转发量超成交量的50倍</option>
			                  </select>
						</div>
						<span class="help-block" >最近3小时：成交0单停止发放裂变红包，防止活动中后期无人关注后台，红包依旧发放</span>
						<span class="help-block" >最近3小时：裂变红包超出收入20元以上，系统自动停发（收入不减三级分销支出的金额）</span>
						<span class="help-block" >员工异常自动锁定：如转发量600次,浏览量1000次,比例是60%,若我们选择了50%锁定,则此员工转发出去的链接,将停用裂变红包功能,触发些判断条件是转发量大于500次,也可在员工业绩中手工锁定员工</span>
						<span class="help-block" >(前50名领取的不受此功能限制)</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则3</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">多次领取间隔分钟</span>
							<input class="form-control" placeholder="例如:20" name="comm4time" value="{$config['comm4time']}" type="text">
							<span class="input-group-addon">多少秒后分享</span>
							<input class="form-control" placeholder="如:20" name="comm4sharetime" value="{if empty($config['comm4sharetime'])}10{else}{$config['comm4sharetime']}{/if}" type="text">
							{if $system['fenxiao07'] == '1'}
							<span class="input-group-addon">多少秒后摇一摇</span>
							<input class="form-control" placeholder="如:10" name="comm4yaotime" value="{if empty($config['comm4yaotime'])}5{else}{$config['comm4yaotime']}{/if}" type="text">
							{/if}
						</div>
						<span class="help-block" >间隔分钟：客户两次转发的时间间隔,单位分钟</span>
						<span class="help-block" >多少秒后分享(建议10秒),客户第一次访问链接必须查看链接多少秒以上才可以得到红包,否则永久得不到红包</span>
						{if $system['fenxiao07'] == '1'}
						<span class="help-block" >多少秒后摇一摇(建议5秒),客户第一次访问链接必须查看链接多少秒以上才可以摇一摇,否则永久得不到红包</span>
						{/if}
						<span class="help-block" >被封的客户可以在裂变记录里进行解封,解封后可正常参与</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则4</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon"><span style="color: red;">*</span>每天预算</span>
							<input class="form-control" placeholder="如:500" name="comm4day" value="{$config['comm4day']}" type="text">
							<span class="input-group-addon"><span style="color: red;">*</span>每小时预算</span>
							<input class="form-control" placeholder="如:50" name="comm4hour" value="{$config['comm4hour']}" type="text">
							<span class="input-group-addon">同1网络</span>
							<input class="form-control" placeholder="如:5" name="comm4ip" value="{if empty($config['comm4ip'])}5{else}{$config['comm4ip']}{/if}" type="text">
						</div>
						<span class="help-block" style="color: red;">(必填)每天预算多少钱(单位:元)：可从小到大，逐渐调整，不建议放开</span>
						<span class="help-block" style="color: red;">(必填)每小时预算多少钱(单位:元) 每天凌晨1-6点系统不会发裂变红包</span>
						<span class="help-block" >同1个IP多少钱(单位:元)：同一个网络下的总红包钱数</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包地区限制5</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
			              <span class="input-group-addon"><span style="color: red;">*</span>城市：</span>
			              <input class="form-control" type="text" value="{$config['comm4city']}" class="span2" name="comm4city">
			              <span class="input-group-addon">定位方式：</span>
			              <div class="input-group-btn" style="width:130px">
			                  <select class="form-control" name="locationtype">
			                          <option value="0" {if $config['locationtype']==0}selected="selected"{/if} >IP地址</option>
			                          <option value="1" {if $config['locationtype']==1}selected="selected"{/if}>微信GPS</option>
			                  </select>
			              </div>
			            </div>
						<span class="help-block" style="color: red;">请填写活动地区，例如：山东,青岛等。值为【省,市,县,区】则不限制地区。多个地区用英文“,”分割</span>
						<span class="help-block" >IP地址：由于是移动联通电信等网络全省统一出口，尽量限制到省级</span>
						<span class="help-block" >微信GPS：可定位到县，区，不过建议还是限制到市，且此功能会弹出客户授权定位</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包占比</label>
					<div class="col-sm-8 col-xs-8">
						<div class="input-group col-sm-3">
							<input class="form-control"  name="comm4zhanbi" value="{$config['comm4zhanbi']}" type="text">
							<span class="input-group-addon"> % </span>
						</div>
						<span class="help-block" >收入的百分之多少用于裂变红包，{php echo $system['send_mode']==1?'最高不可超30%':'0不限制';}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">我的红包里未到账明细</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshowwait" value="0" {if $config['iscommshowwait']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="iscommshowwait" value="1" {if $config['iscommshowwait']==1} checked="checked"{/if} type="radio"> 显示
						</label>
						<span class="help-block">我的红包是否显示未到账的明细</span>
					</div>
				</div>
			</div>
		</div>
		{/if}
<!--		摇一摇红包-礼品升级 2022-03-25-->
		{if $system['fenxiao071']=='1'}
		<div class="tab-pane " id="new-redpackage-gift">
			<div class="panel panel-default" role="tabpanel" style="">
				<div class="panel-heading">摇一摇-多礼品配置</div>
				<div class="panel-body" style="">
					<div id="gift_items">
						{php empty($config['yx_gifts'])?$config['yx_gifts']=array(0,1,2):'';}
						{loop $config['yx_gifts'] $index $row}
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label">礼品{php echo $index+1;}：</label>
							<div class="col-sm-11 col-xs-12">
								<div class="col-sm-9 col-xs-12">
									<div class="input-group">
										<span class="input-group-addon">名称</span>
										<input type="text" name="yx_gift_name[]" class="form-control" placeholder="" value="{$row['yx_gift_name']}" >
									</div>
									<div class="input-group">
										<span class="input-group-addon">描述</span>
										<input type="text" name="yx_gift_detail[]" class="form-control" placeholder=""  value="{$row['yx_gift_detail']}">
									</div>
									<div class="input-group">
										<span class="input-group-addon">售价</span>
										<input type="text" class="form-control"  placeholder="" name="yx_gift_price[]"  value="{$row['yx_gift_price']}">
										<span class="input-group-addon">摇一摇概率</span>
<!--										<input type="text" class="form-control"  placeholder="最低概率" name="yx_gift_minodds[]"  value="{$row['yx_gift_minodds']}">-->
<!--										<span class="input-group-addon">-</span>-->
										<input type="text" class="form-control"  placeholder="概率" name="yx_gift_maxodds[]"  value="{$row['yx_gift_maxodds']}">
									</div>
									<div class="input-group">
										<span class="input-group-addon">库存</span>
										<input type="text" name="yx_gift_stock[]"  class="form-control" placeholder=""  value="{php echo isset($row['yx_gift_stock'])?$row['yx_gift_stock']:0;}">
										<span class="input-group-addon">状态</span>
										<select class="form-control" name="yx_gift_status[]" style="min-width: 80px;{if $row['yx_gift_status'] == 1 }color: red!important;{/if}">
											<option value="0" {if $row['yx_gift_status'] == 0 }selected="selected"{/if}>上架</option>
											<option value="1" {if $row['yx_gift_status'] == 1 }selected="selected"{/if}>下架</option>
										</select>
									</div>
								</div>
								<div class="col-sm-3 col-xs-12">
									{php echo view_form_field_image('yx_gift_img[]',$row['yx_gift_img']);}
								</div>
							</div>
						</div>
						{/loop}
					</div>
					<a href="javascript:;" onclick="addGiftItem();" class="btn btn-info col-lg-1"><i class="glyphicon glyphicon-plus" title="添加产品"></i>添加产品</a>
				</div>
			</div>
		</div>
<!--		摇一摇红包-礼品详情图-->
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">摇一摇-多礼品介绍</div>
			<div class="panel-body" style="">
				<div id="gift_infos">
					{php empty($config['yx_gifts'])?$config['yx_gifts']=array(0,1,2):'';}
					{loop $config['yx_gifts'] $index $row}
					<div class="form-group">
						<label class="col-sm-1 col-xs-12 control-label">礼品{php echo $index+1;}：</label>
						<div class="col-sm-11 col-xs-12">
							{php echo view_form_field_multi_image('yx_gift_info'.$index,$row['yx_gift_info']);}
						</div>
					</div>
					{/loop}
				</div>
			</div>
		</div>
<!--		摇一摇活动规则-->
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">摇一摇-多礼品活动规则</div>
			<div class="panel-body" style="">
				<div id="gift_rules">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动规则：</label>
						<div class="col-sm-9 col-xs-12">
							<table class='table'>
								<thead>
								<tr>
									<th>规则序号</th>
									<th>活动规则内容</th>
									<th>操作</th>
								</tr>
								</thead>
								<tbody id="yx_gt_rule_items">
								{loop $config['yx_gt_rules'] $yx_gt_rule_item}
								<tr >
									<td class="col-sm-1 col-xs-12"><input name="yx_gt_rule_sort[]" type="text"
																		  class="form-control span3" value="{$yx_gt_rule_item['rule_sort']}"
									/></td>

									<td class="col-sm-10 col-xs-12"><input name="yx_gt_rule_content[]" type="text"
																		   class="form-control span3" value="{$yx_gt_rule_item['rule_content']}"
									/></td>
									<td>
										<input  name="yx_gt_rule_id[]" type="hidden" value="{$yx_gt_rule_id['id']}" />
										<a href='javascript:;' onclick='removeGiftsRuleItem(this)'><i
												class='glyphicon glyphicon-remove'></i> 删除</a></td>
								</tr>
								{/loop}
								</tbody>
							</table>
							<a href="javascript:;" onclick="addGiftsRule();"><i class="glyphicon glyphicon-plus" title="添加规则"></i>添加规则</a>
						</div>
					</div>
				</div>
			</div>
		</div>

		<script type="text/javascript">
			var pro_id = {php echo count($config['yx_gifts']);};
			function addGiftItem() {
				pro_id  ++;
				var html =  "			<div class=\"form-group\">\n";
				html +=  "				<label class=\"col-sm-1 col-xs-12 control-label\">礼品" + pro_id + "：</label>\n";
				html +=  "				<div class=\"col-sm-11 col-xs-12\">\n";
				html +=  "					<div class=\"col-sm-9 col-xs-12\">\n";
				html +=  "						<div class=\"input-group\">\n";
				html +=  "							<span class=\"input-group-addon\">名称</span>\n";
				html +=  "							<input type=\"text\" name=\"yx_gift_name[]\" class=\"form-control\" placeholder=\"\" value=\"\">\n";
				html +=  "						</div>\n";
				html +=  "						<div class=\"input-group\">\n";
				html +=  "							<span class=\"input-group-addon\">描述</span>\n";
				html +=  "							<input type=\"text\" name=\"yx_gift_detail[]\" class=\"form-control\" placeholder=\"\" value=\"\">\n";
				html +=  "						</div>\n";
				html +=  "						<div class=\"input-group\">\n";
				html +=  "							<span class=\"input-group-addon\">售价</span>\n";
				html +=  "							<input type=\"text\" class=\"form-control\" placeholder=\"\" name=\"yx_gift_price[]\" value=\"\">\n";
				html +=  "							<span class=\"input-group-addon\">摇一摇概率</span>\n";
				// html +=  "							<input type=\"text\" class=\"form-control\" placeholder=\"\" name=\"yx_gift_minodds[]\" value=\"\">\n";
				// html +=  "							<span class=\"input-group-addon\">-</span>\n";
				html +=  "							<input type=\"text\" class=\"form-control\" placeholder=\"\" name=\"yx_gift_maxodds[]\" value=>\n";
				html +=  "						</div>\n";
				html +=  "						<div class=\"input-group\">\n";
				html +=  "							<span class=\"input-group-addon\">库存</span>\n";
				html +=  "							<input type=\"text\" name=\"yx_gift_stock[]\" class=\"form-control\" placeholder=\"\" value=\"\">\n";
				html +=  "							<span class=\"input-group-addon\">状态</span>\n";
				html +=  "							<select class=\"form-control\" name=\"yx_gift_status[]\" style=\"min-width: 80px;\">\n";
				html +=  "								<option value=\"0\" >上架</option>\n";
				html +=  "								<option value=\"1\" >下架</option>\n";
				html +=  "							</select>\n";
				html +=  "						</div>\n";
				html +=  "					</div>\n";
				html +=  "					<div class=\"col-sm-3 col-xs-12\">							\n";
				html +=  "	<div class=\"input-group \">\n";
				html +=  "		<input type=\"text\" name=\"yx_gift_img[]\" value=\"\" class=\"form-control\" autocomplete=\"off\">\n";
				html +=  "		<span class=\"input-group-btn\">\n";
				html +=  "			<button class=\"btn btn-default\" type=\"button\" onclick=\"showImageDialog(this);\">选择图片</button>\n";
				html +=  "		</span>\n";
				html +=  "	</div>\n";
				html +=  "	<div class=\"input-group \" style=\"margin-top:.5em;\">\n";
				html +=  "		<img src=\"./resource/images/nopic.jpg\" onerror=\"this.src='./resource/images/nopic.jpg'; this.title='图片未找到.'\" class=\"img-responsive img-thumbnail\" width=\"150\">\n";
				html +=  "		<em class=\"close\" style=\"position:absolute; top: 0px; right: -14px;\" title=\"删除这张图片\" onclick=\"deleteImage(this)\">×</em>\n";
				html +=  "	</div>						</div>\n";
				html +=  "				</div>\n";
				html +=  "			</div>\n";
				$("#gift_items").append(html);
				var pro_id_name = pro_id - 1;

				html="<div class=\"form-group\">\n" +
						"\t<label class=\"col-sm-1 col-xs-12 control-label\">产品" + pro_id + "：</label>\n" +
						"\t<div class=\"col-sm-11 col-xs-12\">\n" +
						"\t<div class=\"input-group\">\n" +
						"\t<input type=\"text\" class=\"form-control\" readonly=\"readonly\" value=\"\" placeholder=\"批量上传图片\" autocomplete=\"off\">\n" +
						"\t<span class=\"input-group-btn\">\n" +
						"\t\t<button class=\"btn btn-default\" type=\"button\" onclick=\"uploadMultiImage(this);\">选择图片</button>\n" +
						"\t\t<input type=\"hidden\" value=\"yx_gift_info" + pro_id_name + "\" />\n" +
						"\t</span>\n" +
						"</div>\n" +
						"<div class=\"input-group multi-img-details\"></div>\n" +
						"</div>\n" +
						"</div>";
				$("#gift_infos").append(html);
			}
			function addGiftsRule() {
				var html = "<tr>";
				html += '<td class="col-sm-1 col-xs-12"><input name="yx_gt_rule_sort[]" type="text" class="form-control span3" value="" /></td>';
				html += '<td class="col-sm-10 col-xs-12"><input name="yx_gt_rule_content[]" type="text" class="form-control span3" value="" /></td>';
				html += '<td><input  name="yx_gt_rule_id[]" type="hidden" value="" />&nbsp;<a href="javascript:;" onclick="removeGiftsRuleItem(this)" ><i class="glyphicon glyphicon-remove"></i> 删除</a></td>';
				html += "</tr>";
				$("#yx_gt_rule_items").append(html);
			}
			function removeGiftsRuleItem(obj) {
				$(obj).parent().parent().remove();
			}
		</script>
		{/if}
<!--		摇一摇红包-礼品升级 2022-03-25-->

		{if $system['autored']==0 || $system['autored']==2  || $config['comm4autored']==3}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">拆红包<span style="color: red;">【注意：活动启动后以下参数不可变更】</span></div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">提现限额</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
						<input type="text" class="form-control"  placeholder="例如:100" name="hbtixian"  value="{$config['hbtixian']}">
						<span class="input-group-addon">元</span>						
						<select class="form-control" name="hbtixianmode">
			         		<option value="0" {if $config['hbtixianmode'] == 0 }selected="selected"{/if}>仅限第一次提现</option>
			         		<option value="1" {if $config['hbtixianmode'] == 1 }selected="selected"{/if}>每次提现都限</option>
			     		 </select>
						</div>
					</div>
				</div>
				{if $system['autored']==0 || $system['autored']==2 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">进入链接获得</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
							<input class="form-control"  name="hbopenfee1" value="{$config['hbopenfee1']}" type="text">
							<span class="input-group-addon" id="basic-addon2"> - </span>
							<input class="form-control"  name="hbopenfee2" value="{$config['hbopenfee2']}" type="text">
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">自己报名获得</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
							<input class="form-control"  name="hborderfee1" value="{$config['hborderfee1']}" type="text">
							<span class="input-group-addon" id="basic-addon2"> - </span>
							<input class="form-control"  name="hborderfee2" value="{$config['hborderfee2']}" type="text">
						</div>
					</div>
				</div>


				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">领取红包样式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="hbopenstyle" value="0" {if $config['hbopenstyle']==0} checked="checked"{/if} type="radio"> 微信红包
						</label>
						<label class="radio-inline">
							<input name="hbopenstyle" value="1" {if $config['hbopenstyle']==1} checked="checked"{/if} type="radio"> 个性红包
						</label>
					</div>
				</div>
				{/if}
				{if $system['fenxiao01'] > 0 && $config['comm4autored']==3}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">分销提成</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="fenxiao01_hpopen" value="1" {if $config['fenxiao01_hpopen']==1} checked="checked"{/if} type="radio"> 自动发放
						</label>
						<label class="radio-inline">
							<input name="fenxiao01_hpopen" value="0" {if $config['fenxiao01_hpopen']==0} checked="checked"{/if} type="radio"> 手工提现
						</label>
					</div>
				</div>
				{/if}
				{if $system['fenxiao06'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">员工提成</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="fenxiao06_hpopen" value="0" {if $config['fenxiao06_hpopen']==0} checked="checked"{/if} type="radio"> 自动发放
						</label>
						<label class="radio-inline">
							<input name="fenxiao06_hpopen" value="1" {if $config['fenxiao06_hpopen']==1} checked="checked"{/if} type="radio"> 手工提现
						</label>
					</div>
				</div>
				{/if}

			</div>
		</div>
		{/if}

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">更多设置</div>
			<div class="panel-body" style="">
				{if $config['shopstype5'] == 0 || $config['shopsort']== 0}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">排行榜中人数</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isrankrenshu" value="0" {if $config['isrankrenshu']==0} checked="checked"{/if} type="radio"> 显示
						</label>
						<label class="radio-inline">
							<input name="isrankrenshu" value="1" {if $config['isrankrenshu']==1} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">排行榜中钱数</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isrankqianshu" value="0" {if $config['isrankqianshu']==0} checked="checked"{/if} type="radio"> 显示
						</label>
						<label class="radio-inline">
							<input name="isrankqianshu" value="1" {if $config['isrankqianshu']==1} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 col-xs-12 control-label">[排行榜]与[我的红包]中包含未提现</label>
					<div class="col-sm-8 col-md-7 col-lg-7 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshowfail" value="0" {if $config['iscommshowfail']==0} checked="checked"{/if} type="radio"> 不包含
						</label>
						<label class="radio-inline">
							<input name="iscommshowfail" value="1" {if $config['iscommshowfail']==1} checked="checked"{/if} type="radio"> 包含
						</label>
						<span class="help-block">排行榜中默认只显示已发放的红包数排名，若需不发放也统计在内需选择包含，同时会在我的红包里显示未发放的名单</span>
					</div>
				</div>
				{else}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">重要提示：</label>
					<label class="col-sm-8 col-xs-12 " style="color:red">开启了商家排名，红包排行榜自动关闭；表单设置-》商家排名</label>
				</div>
				{/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">我的红包浮标</label>
					<div class="col-sm-10 col-md-10 col-lg-10 col-xs-12">
						<label class="radio-inline">
							<input name="iscommpop" value="0" {if $config['iscommpop']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="iscommpop" value="1" {if $config['iscommpop']==1} checked="checked"{/if} type="radio"> 有红包时显示（样式1）
						</label>
						<label class="radio-inline">
							<input name="iscommpop" value="2" {if $config['iscommpop']==2} checked="checked"{/if} type="radio"> 没红包也显示（样式1）
						</label>
						<label class="radio-inline">
							<input name="iscommpop" value="3" {if $config['iscommpop']==3} checked="checked"{/if} type="radio"> 有红包时显示（样式2）
						</label>
						<label class="radio-inline">
							<input name="iscommpop" value="4" {if $config['iscommpop']==4} checked="checked"{/if} type="radio"> 没红包也显示（样式2）
						</label>
						<span class="help-block">H5:样式1与样式2均支持；小程序：样式1仅支持新版或对接的小程序，样式2支持所有小程序；<a style="color: #000000" href="http://img2020.yixuansoft.cn/images/2/2023/01/aC0z4UncC8T6978tTu8VT2j0UC9qQm.png" target="_blank">查看对比图</a></span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">我的红包按扭</label>
					<div class="col-sm-10 col-md-10 col-lg-10 col-xs-12">
						<label class="radio-inline">
							<input name="ismycomm" value="0" {if $config['ismycomm']==0} checked="checked"{/if} type="radio"> 默认：排行榜底部+有红包才显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm" value="1" {if $config['ismycomm']==1} checked="checked"{/if} type="radio"> 排行榜底部+没红包也显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm" value="3" {if $config['ismycomm']==3} checked="checked"{/if} type="radio"> 首图底部+有红包也显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm" value="2" {if $config['ismycomm']==2} checked="checked"{/if} type="radio"> 首图底部+没红包也显示
						</label>
						<span class="help-block">两者基本一样，<a style="color: #000000" href="http://img2020.yixuansoft.cn/images/2/2023/01/mQzO36gMo9u2M3eE2PhCUa3QJExJoi.png" target="_blank">查看对比图</a></span>
					</div>
				</div>
				{if $system['wxapp']!=0 && $system['softmode']!=0 }
				<div class="form-group">
					<label class="col-sm-3 col-xs-12 control-label">我的红包按扭（老版本小程序）</label>
					<div class="col-sm-8 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="ismycomm_old" value="0" {if $config['ismycomm_old']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm_old" value="3" {if $config['ismycomm_old']==3} checked="checked"{/if} type="radio"> 首图底部去提现版+有红包也显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm_old" value="2" {if $config['ismycomm_old']==2} checked="checked"{/if} type="radio"> 首图底部去提现版+没红包也显示
						</label>
					</div>
				</div>
				{/if}

				{if $system['wxapp']==0 || $system['softmode']!=1 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">我的红包样式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="myredbagstyle" value="0" {if $config['myredbagstyle']==0} checked="checked"{/if} type="radio"> 2019版样式
						</label>
						<label class="radio-inline">
							<input name="myredbagstyle" value="1" {if $config['myredbagstyle']==1} checked="checked"{/if} type="radio"> 2020新版样式
						</label>
					</div>
				</div>
				{/if}
				{if $config['shopstype5'] == 0 || $config['shopsort']== 0}
				{if ($system['ruanjian']==2 || $_G['companyname'] =='飞驰软件') && $_G['companyname'] !='金策软件'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">红包排行榜样式</label>
					<div class="col-sm-8 col-xs-12">
						<div class="col-sm-6 col-xs-12">
							{php echo view_form_field_image('commlistimg',$config['commlistimg']);}
							<span class="help-block">顶图：<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/phb.png" target="_blank">点击下载模版</a></span>
						</div>
						<div class="col-sm-6 col-xs-12">
							{php echo view_form_field_image('commlistimgbg',$config['commlistimgbg']);}
							<span class="help-block">底图：<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/dbg.jpg" target="_blank">点击下载模版</a></span>
						</div>
					</div>
				</div>
				{else}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">红包排行榜样式</label>
					<div class="col-sm-10 col-xs-12">
						<div class="col-sm-5 col-xs-12">
							{php echo view_form_field_image('commlistimg',$config['commlistimg']);}
							<span class="help-block">顶图：<a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/rank5/rank.png" target="_blank">点击下载模版</a></span>
						</div>
						<div class="col-sm-7 col-xs-12">
							<div class="col-sm-12 col-xs-12">
								{php echo view_form_field_color('commlistbg1',$config['commlistbg1']);}
								<span class="help-block">排行榜底色</span>
							</div>
							<div class="col-sm-12 col-xs-12">
								{php echo view_form_field_color('commlistbg2',$config['commlistbg2']);}
								<span class="help-block">排行榜每行底色</span>
							</div>
							<div class="col-sm-12 col-xs-12">
								{php echo view_form_field_color('commlistbg3',$config['commlistbg3']);}
								<span class="help-block">排行榜顶图底色</span>
							</div>
						</div>
					</div>
				</div>
				{/if}
				{/if}

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">分销指示图标</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('fenxiaotip',$config['fenxiaotip']);}
						<span class="help-block">尺寸大小:330*228 格式：PNG</span>
						<span class="help-block">点击链接右下角红包图标,出现的提示图片，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载模版</a></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">右下角红包图标</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<div class="col-sm-6 col-xs-12">
							<div  class="col-xs-12">
								<label class="radio-inline">
									<input name="ishbicon" value="0" {if $config['ishbicon']==0} checked="checked"{/if} type="radio"> 显示
								</label>
								<label class="radio-inline">
									<input name="ishbicon" value="1" {if $config['ishbicon']==1} checked="checked"{/if} type="radio"> 不显示
								</label>
							</div>
							<div class="col-xs-12">
								<label class="radio-inline">
									<input name="fenxiaourl" value="0" {if $config['fenxiaourl']==0} checked="checked"{/if} type="radio"> 显示分享提示
								</label>
								<label class="radio-inline">
									<input name="fenxiaourl" value="1" {if $config['fenxiaourl']==1} checked="checked"{/if} type="radio"> 进入我的红包
								</label>
								<label class="radio-inline">
									<input name="fenxiaourl" value="2" {if $config['fenxiaourl']==2} checked="checked"{/if} type="radio"> 生成海报
								</label>
							</div>
						</div>
						<div class="col-sm-6 col-xs-12">
<!--							右下角红包图标-->
							{php echo view_form_field_image('hbtip',$config['hbtip']);}
						</div>
						<div class="col-sm-12 col-xs-12">
							<span class="help-block">尺寸大小:200*200 格式：PNG</span>
							<span class="help-block">右下角红包图标,出现的提示图片，透明背景，绝对不出现分享等违规字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/hongbao.psd" target="_blank">点击下载模版</a></span>
						</div>
					</div>
				</div>
				{if $system['fenxiao071']=='1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">多礼品右下角图标</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<div class="col-sm-6 col-xs-12">
							{php echo view_form_field_image('yx_gift_icon',$config['yx_gift_icon']);}
						</div>
						<div class="col-sm-12 col-xs-12">
							<span class="help-block">尺寸大小:200*200 格式：PNG</span>
							<span class="help-block">右下角图标,出现的提示图片，透明背景，绝对不出现分享等违规字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/hongbao.psd" target="_blank">点击下载模版</a></span>
						</div>
					</div>
				</div>
				{/if}
				{if $system['fenxiao07'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">摇一摇红包指示图</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('yaoyiyaotip',$config['yaoyiyaotip']);}
						<span class="help-block">为空则显示默认图</span>
					</div>
				</div>
				{/if}
			</div>
		</div>
	</div>
	<script>
		$('.comm6_add').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
			'<span class="input-group-addon">达到</span>'+
			'<input type="text" name="comm6_limit[]" class="form-control" placeholder="" value="0">'+
			'<span class="input-group-addon">单</span>'+
			'<span class="input-group-addon">提成</span>'+
			'<input class="form-control"  name="comm6_price1[]" value="0.00" type="text">'+
			'<span class="input-group-addon"> - </span>'+
			'<input class="form-control"  name="comm6_price2[]" value="0.00" type="text">'+
			'<span class="input-group-addon">元</span>'+
			'<span class="input-group-addon"><a href="javascript:;" class="comm6_del"><i  class="fa fa-times"></i></a></span>'+
			'</div>';
			$('#comm6_mode2 .tpl').append(html);
		});


		$('.comm6_del').click(function(){
			$(this).parent().parent().remove();
		});

		//  按成交单数提成设置
		$(".set_promotion").click(function() {
			$("#comm6_mode2").css("display","block")
			$(".employee_promotion").css("display","none")
		})

		// 正常提成
		$('.normal_mode').click(function() {
			$("#comm6_mode2").css("display","none")
			$(".employee_promotion").css("display","block")
		})

		// 设置不同团队提成不同，在【员工业绩】》【团队提成设置】中设置
		$('.other_mode').click(function() {
			$(".employee_promotion").css("display","none")
			$("#comm6_mode2").css("display","none")
		})
	</script>